from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.conf import settings

urlpatterns = patterns('',
    (r'^$', 'main.views.index_page'),
    (r'^recent/$', 'main.views.recent'),
    (r'^recent/(?P<filter>.+)/$', 'main.views.recent'),
    (r'^video/(?P<id>\d+)/$', 'main.views.vedio_page'),
    (r'^submit-video/$', 'main.views.sub_video'),
    (r'^contact-us/$', 'main.views.contact_us'),
    
    (r'^main/media/(?P<path>.*)$', 'django.views.static.serve',
           {'document_root': settings.STATIC_PATH}),
)
